import http from "@/utils/http2.js";
/**
 * 查询员工
 * @param {*} data
 */
export function queryEmp(data) {
  return http.post("/v1/employee/query", data);
}

export function saveEmp(data) {
  return http.post("/v1/employee", data);
}

//修改状态
export function changeemployeeStatus(id, status) {
  return http.put("/v1/employee/status?id=" + id + "&status=" + status);
}

export function deleteEmp(id) {
  return http.delete("/v1/employee/delete?id=" + id );
}

export function updateEmp(data) {
  return http.put("/v1/employee", data);
}
